package cn.cdyx.common.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author Watermelon
 * @Date 2023-01-16 10:52
 *
 */
@ApiModel("接口返回模型")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result implements Serializable {
    @ApiModelProperty("状态码")
    private Integer code ;
    @ApiModelProperty("提示信息")
    private String info ;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("操作时间")
    private LocalDateTime operationTime;
    @ApiModelProperty("返回值（错误时返回值为null）")
    private Object data;

}
